﻿using SP.Domain.DTO;
using SP.Domain.Model;
using SP.Service.DTO;

namespace SP.Service
{
    public interface IUserService 
    {
        PageModel<UserTable> UserList(int pageIndex, int pageSize, string? UserName);
        UserTable Login(LoginDTO model);
        int AddUser(UserTable model);
        int DeleteUser(UserTable model);
        PageModel<UserTable> GetUsers(int pageIndex, int pageSize);
        int UpdateUser(UserTable model);
        int BatckUser(string id);
        UserTable FindUser(int id);
    }
}